-- GENERATED SPELL FOR [Lady Vespia] --


function spell0_10559(pUnit, Event) --@Aqua Jet,Self--
pUnit:FullCastSpellOnTarget(13586,pUnit)
pUnit:RegisterEvent('Sorts_10559', 619, 1)
end

function spell1_10559(pUnit, Event) --@Frostbolt Volley,n/a--
pUnit:FullCastSpellOnTarget(8398,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10559', 10000, 1)
end

function spell2_10559(pUnit, Event) --@Quick Frost Ward,n/a--
pUnit:FullCastSpellOnTarget(4980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10559', 11500, 1)
end

function Sorts_10559(pUnit, Event)
local choix_sorts_10559 = math.random(0, 2)
if choix_sorts_10559 == 0 then
pUnit:RegisterEvent('spell0_10559', 1, 1)
end
if choix_sorts_10559 == 1 then
pUnit:RegisterEvent('spell1_10559', 1, 1)
end
if choix_sorts_10559 == 2 then
pUnit:RegisterEvent('spell2_10559', 1, 1)
end
end

function mob10559_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10559', math.random(1500, 3000), 1)
end

function mob10559_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10559_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10559_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10559, 1, 'mob10559_Action')
RegisterUnitEvent(10559, 2, 'mob10559_Leave')
RegisterUnitEvent(10559, 3, 'mob10559_Kill')
RegisterUnitEvent(10559, 4, 'mob10559_Die')
